package com.mycat.dao.custom;

import com.mycat.dao.base.BaseDao;
import com.mycat.dao.dto.custom.CustomTestDTO;
import com.mycat.dao.entity.test.GuestEntity;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 自定义操作
 */
@Repository
public class CustomDao extends BaseDao<CustomTestDTO>{

    @Override
    protected String getNameSpace() {
        return "com.mycat.dao.custom.CustomMapper";
    }

    public List<CustomTestDTO> queryCustomDTO(){
        return this.getObjectList("selectCustomDTO");
    }

    public GuestEntity findGuestById(){
        return this.getObject("findGuestById");
    }

}